package productproperty

import (
	"github.com/labstack/echo"
)

type OxyProductPropertyData interface {
	GetProductPropertyListHandler(c echo.Context) error
	AddProductPropertyHandler(c echo.Context) error
	UpdateProductPropertyHandler(c echo.Context) error
	DelProductPropertyHandler(c echo.Context) error
}

func New(e string) OxyProductPropertyData {
	if e == "design" {
		Data := NewOXYDesignPropertyData()
		return Data
	} else {
		Data := NewOXYProductPropertyData()
		return Data
	}
}
